<?php
final class Controller_Common_Xheditor extends Controller_Public_Account{
    protected function Upload(){
        include(BUILD_ROOT.'/public/M-PEAR/xheditorUploader.php');
        $xru=new XheditorUploader();
        $xru->FileControlName='filedata';
        $xru->UploadType=XheditorUploader::UPLOAD_TYPE_IMAGE;
        $xru->URIPath=BUILD_PATH.'/data/001/xheditor';
        $xru->UpoadPath=BUILD_ROOT.$xru->URIPath;
        $xru->Upload();
        echo json_encode($xru->Error());
    }
}

